<!-- 登陆页 -->
<template>
    <layout-apge class="login"> 登录 </layout-apge>
</template>

<script>
export default {
    data() {
        return {
            loginTabList: [{ name: '短信登录' }, { name: '密码登录' }],
            tabActiveIdx: 0 // tab选中项目
        };
    },

    onLoad(options) {
        uni.clearStorageSync();
        const idx = options.idx || 0;
        this.tabActiveIdx = Number(idx);
    },
    methods: {
        /**
         * tab点击事件
         * */
        clickTabs(e) {
            const { index } = e;
            this.tabActiveIdx = index;
        }
    }
};
</script>

<style lang="scss" scoped>
.login {
    .login-hd {
        height: 96rpx;
    }
}
</style>
